home *** CD-ROM | disk | FTP | other *** search
/ PLAYymate for OS/2 / Playmate for OS2.iso / p4os2026 / life2.h < prev    next >
Text File  |  1993-09-05  |  3KB  |  108 lines

  1. /*-----------------------
  2.  
  3.    LIFE2.H header file
  4.    ----------------------*/
  5.  
  6. #define INCL_PM
  7.  
  8. #define INCL_DOS
  9. #define INCL_WINWINDOWMGR
  10. #define INCL_WINWORKPLACE
  11. #define INCL_WINFRAMEMGR
  12. #define INCL_WINSYS
  13. #define INCL_DOSMEMMGR
  14. #define INCL_DOSPROCESS
  15. #define NULLH NULLHANDLE
  16.  
  17. #include <math.h>
  18. #include <time.h>
  19. #include <stdlib.h>
  20. #include <stdio.h>
  21. #include <memory.h>
  22. #include <string.h>
  23. #include <os2.h>
  24.  
  25. typedef struct {
  26.   ULONG colorF ;
  27.   ULONG colorB ;
  28. } TWOCOLORS ;
  29.  
  30. typedef struct {
  31.   SHORT cScale ;
  32. } SCALE ;
  33.  
  34. MRESULT EXPENTRY ClientWndProc ( HWND, ULONG, MPARAM, MPARAM ) ;
  35.  
  36. #define szAppName  "Life2"
  37. #define szKeyPos   "Window Pos"
  38. #define szKeyColor "Colors"
  39. #define szKeyScale "Grid Scale"
  40.  
  41. #define COUNT             10
  42.  
  43. #define ID_RESOURCE       1
  44. #define ID_TIMER          1
  45.  
  46. #define IDM_SIZE          10
  47.  
  48. #define IDM_LARGE         1
  49. #define IDM_SMALL         2
  50. #define IDM_TINY          4
  51.  
  52. #define RAN_BORDER        0
  53. #define IDM_RANDOM        24
  54. #define IDM_COLOR         25
  55. #define IDM_BACK_COLOR    26
  56. #define IDM_FORE_COLOR    27
  57.  
  58. #define IDM_RAN100        200
  59. #define IDM_RAN90         190
  60. #define IDM_RAN80         180
  61. #define IDM_RAN70         170
  62. #define IDM_RAN60         160
  63. #define IDM_RAN50         150
  64. #define IDM_RAN40         140
  65. #define IDM_RAN30         130
  66. #define IDM_RAN20         120
  67. #define IDM_RAN10         110
  68.  
  69. #define IDM_CLEAR         20
  70. #define IDM_START         21
  71. #define IDM_STOP          22
  72. #define IDM_STEP          23
  73.  
  74. #define  FCLR_BLACK      100
  75. #define  FCLR_DARKBLUE    99
  76. #define  FCLR_DARKGREEN   98
  77. #define  FCLR_DARKCYAN    97
  78. #define  FCLR_DARKRED     96
  79. #define  FCLR_DARKPINK    95
  80. #define  FCLR_BROWN       94
  81. #define  FCLR_PALEGRAY    93
  82. #define  FCLR_DARKGRAY    92
  83. #define  FCLR_BLUE        91
  84. #define  FCLR_GREEN       90
  85. #define  FCLR_CYAN        89
  86. #define  FCLR_RED         88
  87. #define  FCLR_PINK        87
  88. #define  FCLR_YELLOW      86
  89. #define  FCLR_WHITE       85
  90.  
  91. #define  BCLR_BLACK      300
  92. #define  BCLR_DARKBLUE   299
  93. #define  BCLR_DARKGREEN  298
  94. #define  BCLR_DARKCYAN   297
  95. #define  BCLR_DARKRED    296
  96. #define  BCLR_DARKPINK   295
  97. #define  BCLR_BROWN      294
  98. #define  BCLR_PALEGRAY   293
  99. #define  BCLR_DARKGRAY   292
  100. #define  BCLR_BLUE       291
  101. #define  BCLR_GREEN      290
  102. #define  BCLR_CYAN       289
  103. #define  BCLR_RED        288
  104. #define  BCLR_PINK       287
  105. #define  BCLR_YELLOW     286
  106. #define  BCLR_WHITE      285
  107.  
  108.